import request from '@/utils/request'

export const login = (loginInfo) => {
  return request.post('/web/login/login', loginInfo)
}

export const register = (registerInfo) => {
  return request.post('/web/login/register', registerInfo)
}

export const getCodeImage = (key) => {
  return request.get('/web/login/randomImage/'+key)
}